package com.proj.infrautil;


//import org.hibernate.SessionFactory;
//import org.hibernate.cfg.AnnotationConfiguration;

import java.io.File;

public final class DBUtil
{
    private static DBUtil dbUtil = new DBUtil();

    private DBUtil()
    {
        System.out.println("DBUtil.DBUtil");
    }

    public static DBUtil getInstance()
    {
        System.out.println("DBUtil.getInstance");
        return dbUtil;
    }

//    public static synchronized SessionFactory getSessionFactory()
//    {
//        System.out.println("DBUtil.getSessionFactory");
//        AnnotationConfiguration config = new AnnotationConfiguration();
//        //todo:add the files.
//        config.configure("hibernate-core.xml");
//        config.configure("hibernate-users.xml");
//        return config.buildSessionFactory();
//    }
}
